package com.an.blog.admin.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.an.common.annotation.ExcelDictFormat;
import com.an.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;


/**
 * 博客每日图片视图对象 blog_daily_image
 *
 * @author Ann
 * @date 2023-09-25
 */
@Data
@ExcelIgnoreUnannotated
public class BlogDailyImageVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private Long image;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片地址")
    private String imageUrl;


    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

}
